package com.zshy.base.monitor.domain.contract.command;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.hibernate.validator.constraints.Length;

/**
 * 发送普通文本消息请求体
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class SendMessageByTextCommand extends SendMessageBaseCommand {
    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空")
    @Length(max = 2048, message = "消息内容不能超过2048个字符")
    private String content;
}
